﻿<%@ Page Language="C#" MasterPageFile="~/Site1.master" AutoEventWireup="true" CodeFile="AddCommunicate.aspx.cs" Inherits="AddCommunicate" ValidateRequest="false" %>

<asp:Content ID="Content2" ContentPlaceHolderID="C" runat="Server">
    
    <div id="addcommunicate">
        <div class="dh">
            注：请认真填写表格（<span class="red">带∗为必填项</span>）。为了使您获得答复，请您务必填写正确的E-mail地址！ 务必使用文明用语。对于含有不文明用语的诉求件，系统将不予受理。

        </div>
        <div class="biaodan">
            <div class="title">诉求人：</div>
            <table>
                <tbody>
                    <tr>
                        <td width="122" class="tdr"><span class="red">*</span>姓&nbsp;&nbsp;&nbsp;&nbsp;名：</td>
                        <td style="width: 335px;">
                            <asp:TextBox ID="frmName" runat="server" CssClass="txtInput normal "></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="frmName" ErrorMessage="姓名不能为空！！！"></asp:RequiredFieldValidator>
                            <br />
                        </td>
                        <td width="133" class="tdr">性&nbsp;&nbsp;&nbsp;&nbsp;别：</td>
                        <td width="310">
                            <label>
                                <input value="1" checked="checked" type="radio" name="gender">
                                男</label>&nbsp;&nbsp;&nbsp;&nbsp;
                          <label>
                              <input value="0" type="radio" name="gender">
                              女</label></td>
                    </tr>
                    <tr>
                        <td class="tdr"><span class="red">*</span>从事职业：
                        </td>
                        <td>
                            <XCL:DropDownList ID="frmOccupation" runat="server" DataTextField="TreeNodeName2"
                                DataValueField="ID" AppendDataBoundItems="True" ToolTip="请选择分类">
                            </XCL:DropDownList>
                            <asp:ObjectDataSource ID="ods" runat="server" SelectMethod="FindAllChildsByParent"
                                DataObjectTypeName="NewsPub.Occupation" TypeName="NewsPub.Occupation">
                                <SelectParameters>
                                    <asp:Parameter DefaultValue="0" Name="parentKey" Type="Int32" />
                                </SelectParameters>
                            </asp:ObjectDataSource>
                            <br />
                        </td>
                        <td class="tdr"><span class="red">*</span>电子邮箱：
                        </td>
                        <td>
                            <asp:TextBox ID="frmEmail" runat="server" CssClass="txtInput normal " ToolTip="这是我们与你联系的唯一方法，请务必填写正确。"></asp:TextBox>
                            
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="frmEmail" ErrorMessage="格式错误！！！" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" Display="Static"></asp:RegularExpressionValidator>
                            <br />
                        </td>
                    </tr>
                    <tr>
                        <td class="tdr"></td>
                        <td></td>
                        <td class="tdr"></td>
                        <td><asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ErrorMessage="不能为空！！！" ControlToValidate="frmEmail"></asp:RequiredFieldValidator></td>
                    </tr>
                    <%--<tr>
                        <td class="tdr">联系电话：</td>
                        <td>
                            <input type="text" name="phone" id="phone" class="tbox_edit_l" maxlength="20">
                            <span id="span_phoneMsg" style="display: none;"></span>
                        </td>
                        <td class="tdr">手&nbsp;&nbsp;&nbsp;&nbsp;机：</td>
                        <td>
                            <input type="text" name="cellphone" id="cellphone" class="tbox_edit_l" maxlength="15">
                            <span id="span_cellphoneMsg" style="display: none;"></span>
                        </td>
                    </tr>--%>


                </tbody>
            </table>
            <div class="title">诉求问题:</div>
            <table>
                <tbody>
                    <tr>
                        <td class="tdr"><span class="red">*</span>诉求类型：</td>
                        <td >

                            <asp:RadioButtonList ID="frmClassisID" runat="server" RepeatDirection="Horizontal" DataSourceID="fcods" DataTextField="Name" DataValueField="ID" Width="500" RepeatLayout="Flow">
                            </asp:RadioButtonList>
                            <%--<XCL:DropDownList ID="frmClassisID" runat="server" DataTextField="TreeNodeName2"
                    DataValueField="ID" AppendDataBoundItems="True" DataSourceID="ods" ToolTip="请选择分类" >
                </XCL:DropDownList>--%>
                            <asp:ObjectDataSource ID="fcods" runat="server" SelectMethod="FindAllChildsNoParent"
                                DataObjectTypeName="NewsPub.Classis" TypeName="NewsPub.Classis">
                                <SelectParameters>
                                    <asp:Parameter DefaultValue="47" Name="parentKey" Type="Int32" />
                                </SelectParameters>
                            </asp:ObjectDataSource>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="必须选择一个！！！" ControlToValidate="frmClassisID"></asp:RequiredFieldValidator></td>

                    </tr>

                    <tr>
                        <td class="tdr" width="122"><span class="red">*</span>诉求标题：</td>
                        <td colspan="3">
                            <asp:TextBox ID="frmTitle" runat="server" CssClass="txtInput normal " Width="600px"></asp:TextBox>
                            <span id="span_titleMsg" style="display: none;"></span>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="frmTitle" ErrorMessage="标题不能为空！！！"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td class="tdr" width="122"><span class="red">*</span>诉求内容：</td>
                        <td colspan="3">
                            <textarea id="frmContent" name="frmContent" runat="server" style="width: 750px; height: 250px"></textarea>
                            <link rel="stylesheet" href="/kindeditor/themes/default/default.css" />
	<link rel="stylesheet" href="/kindeditor/plugins/code/prettify.css" />
	<script charset="utf-8" src="/kindeditor/kindeditor.js"></script>
	<script charset="utf-8" src="/kindeditor/lang/zh_CN.js"></script>
	<script charset="utf-8" src="/kindeditor/plugins/code/prettify.js"></script>
                            <script>
                                var editor;
                                KindEditor.ready(function (K) {
                                    editor = K.create('#ctl00_C_frmContent', {
                                        cssPath: '../../kindeditor/plugins/code/prettify.css',
                                        uploadJson: '../../kindeditor/upload_json.ashx',
                                        themeType: 'simple',
                                        resizeType: 1,
                                        allowPreviewEmoticons: false,
                                        allowImageUpload: true,
                                        items: [
                                            'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline',
                                            'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
                                            'insertunorderedlist', '|', 'emoticons', 'image', 'link']
                                    });
                                });
                            </script>
                        </td>
                    </tr>
                    <tr>
                        <td class="tdr">是否网上公开：</td>
                        <td colspan="3">
                            <asp:RadioButtonList ID="frmPublishable" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
                                <asp:ListItem Selected="True" Value="True">可以在网上公开 </asp:ListItem>
                                <asp:ListItem Value="False">不在网上公开 </asp:ListItem>
                            </asp:RadioButtonList>
                        </td>
                    </tr>
                    <tr>
                        <td class="tdr">验证码：
					<br />
                        </td>
                        <td colspan="3">
                            <asp:TextBox ID="frmVCode" runat="server" CssClass="login_input required" MaxLength="4" Style="width: 55px; text-transform: uppercase;" CausesValidation="True" ControlToValidate="frmVCode" />
                            <XCL:VerifyCodeBox ID="VerifyCodeBox1" CssClass="STYLE1 verify-code-box" runat="server" ControlToValidate="frmVCode" Height="25px" Width="130px"></XCL:VerifyCodeBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="请检查验证码！" ControlToValidate="frmVCode"></asp:RequiredFieldValidator>
                            <br />
                        </td>
                    </tr>
                    <tr>
                        <td>&nbsp;</td>
                        <td colspan="3" class="sent_div">
                            <asp:Button ID="btnSave" runat="server" Text="我是一个兵" CssClass="btnSubmit" />

                        </td>
                    </tr>
                </tbody>
            </table>
            <br />

        </div>
    </div>
</asp:Content>
